﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Shsc.Net.Web.Models;
using Shsc.Net.Web.Extension;
using Shsc.Net.Service.Test;

namespace Shsc.Net.Web.Controllers.Logon
{
    public class LoginController : BaseController
    {
        public TestService testService
        {
            get { return (TestService)service; }
            set { service = value; }
        }

        public ActionResult Index()
        {
            LoginDto model = new LoginDto();
            return View(model);
        }


        [HttpPost]
        [Validator("dto")]
        public ActionResult Index(LoginDto dto)
        {
            testService.doTest(dto);
            return RedirectToAction("Index", "Home");
        }
    }
}
